import {detailApi} from "@api/request.js";

export default{
    state:{
        details:{},

    },
    mutations:{
        getDetail(state,data){
            state.details = data;
        }
    },
    actions:{
        async getAsyncDetail({commit},activityId){
            let data = await detailApi(activityId);
            commit("getDetail",data)
        }
       
    },

}